package org.xjl.model.provider.controller;

import dev.langchain4j.model.openai.OpenAiChatModel;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/model/provider")
@RestController
public class TestController {

    @Resource(name = "deepSeekModel")
    private OpenAiChatModel deepSeekModel;

    @Resource(name = "qwenModel")
    private OpenAiChatModel qwenModel;

    @RequestMapping("/ds")
    public String testDS() {
        return deepSeekModel.chat("你好,你是谁?");
    }

    @RequestMapping("/qw")
    public String testQW() {
        return qwenModel.chat("你好,你是谁?");
    }

}
